const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  devServer: { //配置开启跨域和请求转发
    proxy: {
      '/admin-api/system': {
        target: process.env.VUE_APP_SERVER_URL,
        changeOrigin: true, // 是否支持跨域
        ws: true,
      }
    }
  },
})
